/*
 * @Description: 星币明细
 * @Author: iamsmiling
 * @Date: 2021-06-13 13:51:22
 * @LastEditTime: 2021-06-13 14:49:04
 */
import 'package:credit_business_circle/pages/mine/children/partner/children/kpi/children/kpi_bill/fragment/kpi_bill_fragment.dart';
import 'package:credit_business_circle/pages/mine/children/partner/children/kpi/children/kpi_bill/fragment/with_drawal_fragment.dart';
import 'package:credit_business_circle/pages/mine/children/partner/children/kpi/children/kpi_bill/kpi_bill_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class KpiBillPage extends GetView<KpiBillController> {
  const KpiBillPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Scaffold(
        appBar: AppBar(
          title: Text("星币明细"),
          elevation: 0,
          bottom: TabBar(tabs: [
            Tab(
              child: Text("星币账单"),
            ),
            Tab(
              child: Text("提现记录"),
            ),
          ]),
        ),
        body: TabBarView(
          children: [
            KpiBillFragment(
              bills: controller.bills,
            ),
            WithDrawalFragment(
              records: controller.records,
            )
          ],
        ),
      ),
    );
  }
}
